home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13329 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: orion.alaska.edu!axmmm
  2. From: axmmm@orion.alaska.edu
  3. Newsgroups: comp.lang.c++
  4. Subject: #include"#include"thing.h""
  5. Date: 23 Mar 96 15:09:17 AST
  6. Organization: University of Alaska
  7. Message-ID: <1996Mar23.150917.1@orion.alaska.edu>
  8. NNTP-Posting-Host: orion.alaska.edu
  9.  
  10. Hello. I have  a question. 
  11.  
  12. Say I define a THING class. Once I do this, you see, I can create lots of
  13. things.
  14.  
  15. But.
  16.  
  17. Each of these THINGs must contain a list of THINGs. Or so runs the theory.
  18. I'm placing a bunch of THINGS in a doubly-linked list; but I want each of these
  19. things to be able to (via a Thing.Search type function) scroll through the list
  20. and look at all the other things.
  21.  
  22. So, essentially, I'm handing each Thing, in the list, a copy of the list with
  23. all the things.
  24.  
  25. This is causing me problems when I try to compile, since in order to define a
  26. class THINGLIST (which contains all the thing list manipulating functions), I
  27. must define a Thing.
  28.  
  29. Which I did. But this Thing (as stated before) has a THINGLIST member in it.
  30. Which is full of things, which are full of thinglists, which are full of...
  31.  
  32.  
  33. Anyways; is it possible for me to do something like this? In the end I want a
  34. bunch of things dynamically created at run time, and able to be placed in a
  35. list of things. I also want to let each of the things in that list to be able
  36. to look at all the other things in that list, so that they might (for instance)
  37. place data in a selected thing's input buffer.
  38.  
  39. I've got code I could post to show you where I'm at; so if you could at all
  40. help me (PLEASE!) email me at
  41.  
  42.             pfennig@alaska.net
  43.  
  44.     (That's my private account. I'm using my rock-slow university account
  45. with a crappy newsreader I never use right now)
  46.  
  47. THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU in advance.
  48.  
  49.  
  50.